/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.farmcode.web.generator.objectinfo;

import com.farmcode.api.runtime.metadata.ObjectInfo;
import com.farmcode.api.runtime.metadata.TableSpc;
import javax.inject.Named;
import javax.enterprise.context.RequestScoped;

/**
 *
 * @author Oscar Ivan Prado
 */
@Named(value = "tablesBackingBean")
@RequestScoped
public class TablesBackingBean extends BaseObjectInfo {

    /** Creates a new instance of tables */
    public TablesBackingBean() {
    }

    @Override
    public Object getObjectType() {
        return new TableSpc();
    }

    @Override
    public void selectAll() {
        for (ObjectInfo info : getObjectInfos()) {
//            info.put("used", "true");
        }
    }

    @Override
    public void unselectAll() {
        for (ObjectInfo info : getObjectInfos()) {
//            info.put("used", "false");
        }
    }
}
